package com.xjiye_test.payServer.servletGroup.shemmapay;

import com.xjiye_test.payServer.enums.CheckTest;

public class TestParser {
    /*
    0:少
    1:不变
    2：多
    3:金额不一致
    返回数组：index0代表支付；index1退款
     */


    public static int[] getOrderTest(CheckTest test){
        switch (test){
            case NO_CHECK:
                return new int[]{1,1};
            case CHECK_PAY_AMOUNT:
                return new int[]{3,1};
            case CHECK_PAY_SHORT:
                return new int[]{2,1};
            case CHECK_PAY_LONG:
                return new int[]{0,1};
            case CHECK_REFUND_AMOUNT:
                return new int[]{1,3};
            case CHECK_REFUND_SHORT:
                return new int[]{1,2};
            case CHECK_REFUND_LONG:
                return new int[]{1,0};
            case CHECK_PAY_SHORT_REFUND_SHORT:
                return new int[]{2,2};
            case CHECK_PAY_SHORT_REFUND_LONG:
                return new int[]{2,0};
            case CHECK_PAY_LONG_REFUND_SHORT:
                return new int[]{0,2};
            case CHECK_PAY_LONG_REFUND_LONG:
                return new int[]{0,0};
            default:
                return null;
        }
    }
}
